<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include.inc.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]>
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<base href="<%=basePath%>">
<meta charset="utf-8" />
<title>华瑞采购 | 后台管理</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<meta name="MobileOptimized" content="320">

<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="assets/plugins/font-awesome/css/font-awesome.min.css"
	rel="stylesheet" type="text/css" />
<link href="assets/plugins/bootstrap/css/bootstrap.min.css"
	rel="stylesheet" type="text/css" />
<link href="assets/plugins/uniform/css/uniform.default.css"
	rel="stylesheet" type="text/css" />
<!-- END GLOBAL MANDATORY STYLES -->


<!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
<link href="assets/plugins/gritter/css/jquery.gritter.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/bootstrap-daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="assets/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css" />
<link rel="stylesheet" type="text/css" href="assets/plugins/bootstrap-modal/css/bootstrap-modal.css" />
<link href="assets/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="assets/plugins/bootstrap-toastr/toastr.min.css" />
<!-- END PAGE LEVEL PLUGIN STYLES -->


<!-- BEGIN THEME STYLES -->
<link href="assets/global/css/components.css" rel="stylesheet">
<link href="assets/css/style-metronic.css" rel="stylesheet" type="text/css" />
<link href="assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="assets/css/style-responsive.css" rel="stylesheet" type="text/css" />
<link href="assets/css/plugins.css" rel="stylesheet" type="text/css" />
<link href="assets/css/themes/light.css" rel="stylesheet" type="text/css" id="style_color" />
<link href="assets/css/custom.css" rel="stylesheet" type="text/css" />
<!-- END THEME STYLES -->
<link rel="shortcut icon" href="favicon.ico" />

</head>
<!-- END HEAD -->


<!-- BEGIN BODY -->
<body class="page-header-fixed">
	<!-- BEGIN HEADER -->
	<%@include file="header.jsp"%>
	<!-- END HEADER -->
	<div class="clearfix"></div>
	<!-- BEGIN CONTAINER -->
	<div class="page-container">
		<!-- BEGIN SIDEBAR -->
		<%@include file="left.jsp"%>
		<!-- END SIDEBAR -->
		<!-- BEGIN PAGE -->
		<div class="page-content">
			
			<!-- 主题颜色 -->
			<%@include file="theme.jsp"%>

			<div class="row " style="margin-top: -20px">
				<!-- 主部分  开始-->
				<div class="col-md-12 col-sm-12">
					<!-- BEGIN PAGE HEADER-->
					<div class="row">
						<div class="col-md-12">
							<!-- BEGIN PAGE TITLE & BREADCRUMB-->
							<h3 class="page-title">							
								欢迎使用 <small>华瑞采购管理系统</small>
							</h3>
							<ul class="page-breadcrumb breadcrumb"
								style="margin-bottom: 10px;padding-bottom: 9px;">
								<li><i class="fa fa-home"></i> <a href="index.html">主页</a>
									<i class="fa fa-angle-right"></i></li>
								<li><i class="fa fa-bell-o"></i> <a href="javascript:void(0);">导入计划</a>
								<i class="fa fa-angle-right"></i></li>
								<li><span>欢迎&nbsp;<strong>${user.account}</strong>&nbsp;登录</span></li>
								<li><span style="padding-left: 5px;">现在是&nbsp;<fmt:formatDate  value="<%=new Date() %>" type="both" pattern="yyyy年MM月dd日 HH:mm" /></span></li>
								<li class="pull-right">
									<div id="dashboard-report-range"
										class="dashboard-date-range tooltips" data-placement="top"
										data-original-title="Change dashboard date range">
										<i class="fa fa-calendar"></i> <span></span> <i
											class="fa fa-angle-down"></i>
									</div>
								</li>
							</ul>
							<!-- END PAGE TITLE & BREADCRUMB-->
						</div>
					</div>
					<div class="clearfix"></div>
					
					<div class="row">
						<!-- BEGIN CONTENT -->
						<div class="col-md-12"><!-- action="web/showExcelHandler.htm?_sel=1" -->
							<form id="uploadForm" method="post" action="web/showExcelHandler.htm?_sel=1"  enctype="multipart/form-data" style="display: none;">
								<input type="file" id="plan_file" name="excelFile"  multiple/>
							</form>
							
							<a id="add_plan" href="javascript:void(0);" class="btn btn-xs green"><i class="fa fa-plus"></i> 导入计划</a>&nbsp;
							<span style="color: orange;0">请导入正确格式的 excel计划文档，文档后缀为.xls,.xlsx</span>&nbsp;&nbsp;
							<span id="show_progress" style="display: none;"><progress></progress></span>
							
							
						</div>
					</div>
					
					<div class="clearfix"></div>
					
					<!-- BEGIN PAGE CONTENT-->
					<div class="row" style="display: none;">
						<!-- BEGIN CONTENT -->
						<div class="col-md-12">
							<div class="portlet box purple">
								<div class="portlet-title">
									<div class="caption">
										<i class="fa fa-th-list"></i>计划列表预览
									</div>
									<div class="tools"></div>
								</div>
								<div class="portlet-body flip-scroll">
									<div  >
										<div class="btn-group">
											<div class="clearfix">
												<a id="fenpei_btn" class="btn btn-xs btn-default blue disabled" href="javascript:void(0);"  >
													<i class="fa fa-link"></i> 分配计划</a>
											</div>
										</div>
									</div>
									
									<table id="add_plan_table" class="table table-striped table-bordered table-hover"></table>
									
									<div class="form-actions fluid">
										<div class="col-md-offset-5 col-md-10">                        
											<button id="btn_commit" type="submit" class="btn blue">保存</button> 
											<button type="button" class="btn default">取消</button>  
										</div>
									</div>
								</div>
								<!-- END PRODUCT LIST -->
							</div>
						</div>
					</div>
					<!-- END CONTENT -->
					<!-- END PAGE CONTENT-->
						
					
				</div>
				<!-- 主部分  结束-->
			</div>

		</div>
		<!-- END PAGE -->
		
		<!--show modal start  -->
		<!-- 添加员工 --><!--加入container即变宽  -->
		<div id="addEmployee" class="modal container fade" tabindex="-1"
			data-backdrop="static" data-keyboard="false"
			data-attention-animation="false">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
				<h4 class="modal-title"><strong id="header_bar">添加员工</strong></h4>
			</div>
			<div class="modal-body form">
				<form id="one_form"
					class="form-horizontal form-bordered">
					<div class="form-body">
					<!-- hide input  -->
					<input type="hidden" name="id" id="id">
						<div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							<label class="control-label col-md-2">员工姓名:<span class="required">*</span></label>
							<div class="col-md-4" style="border-left: 0; ">
								<input type="text" class="form-control"
									placeholder="请输入员工姓名" id="name"
									name="name">
							</div>
							<label class="control-label col-md-2">所在部门:<span class="required">*</span></label>
							
							<div class="col-md-4" style="border-left: 0;">
								<select id="departmentId" name="department.id"  class="form-control select2" id="select_pro_sel" style="z-index: 999">
									<c:forEach var="dep" items="${depList}" >
										<option value="${dep.id}">${dep.departmentName}</option>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							<label class="control-label col-md-2">员工性别：</label>
							<div class="col-md-4" style="border-left: 0;">
								<select name="sex"  class="form-control select2" id="sex" style="z-index: 999">
									<option value="0">男</option>
									<option value="1">女</option>
								</select>
							</div>
							<label class="control-label col-md-2">员工年龄：</label>
							<div class="col-md-4" style="border-left: 0;">
								<input type="text" class="form-control"
									placeholder="请输入员工年龄" id="age"
									name="age">
							</div>
						</div>
						<div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							<label class="control-label col-md-2">员工电话：</label>
							<div class="col-md-4" style="border-left: 0; ">
								<input type="text" class="form-control"
									placeholder="请输入员工电话" id="tel"
									name="tel">
							</div>
							<label class="control-label col-md-2">员工手机：</label>
							<div class="col-md-4" style="border-left: 0;">
								<input type="text" class="form-control"
									placeholder="请输入员工手机号码" id="mobile"
									name="mobile">
							</div>
						</div>
						<div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							<label class="control-label col-md-2">员工邮箱：</label>
							<div class="col-md-4" style="border-left: 0; ">
								<input type="text" class="form-control"
									placeholder="请输入员工邮箱" id="email"
									name="email">
							</div>
							<label class="control-label col-md-2">员工状态：</label>
							<div class="col-md-4" style="border-left: 0;">
								<select name="status"  class="form-control select2" id="status" style="z-index: 999">
									<option value="1" style="color: green;">在职</option>
									<option value="0" style="color: red;">离职</option>
								</select>
							</div>
						</div>
						<!--<div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							 <label class="control-label col-md-2">员工QQ：</label>
							<div class="col-md-4" style="border-left: 0;">
								<input type="text" class="form-control"
									placeholder="请输入员工QQ" id="qq"
									name="qq">
							</div> -->
							<!-- <label class="control-label col-md-2">员工微信：</label>
							<div class="col-md-4" style="border-left: 0;">
								<input type="text" class="form-control"
									placeholder="请输入员工微信" id="weixin"
									name="weixin">
							</div> 
						</div> -->
						
						<div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							<label class="control-label col-md-2">备注信息：</label>
							<div class="col-md-10" style="border-left: 0;">
								<input type="text" class="form-control"
									placeholder="请输入备注信息" id="bak"
									name="bak">
							</div>
						</div>
						
					</div>
				</form>
			</div>
			<div class="modal-footer" style="margin-top: 0;">
				<button id="btn_commit_one_form" type="button"
					data-dismiss="modal" class="btn blue">提交</button>
				<button id="btn_close_one_form" type="button"
					data-dismiss="modal" class="btn btn-default">取消</button>
			</div>
		</div>
		
		<div id="delEmployee" class="modal fade in" tabindex="-1"
			data-backdrop="static" data-keyboard="false"
			data-attention-animation="false">
			<div class="modal-body">
				<p>确认要删除该员工吗？</p>
				<input type="hidden" id="delId"/>
			</div>
			<div class="modal-footer" style="margin-top: 0;">
				<button id="btn_commit_delView" type="button"
					data-dismiss="modal" class="btn blue">确定</button>
				<button id="btn_close_delView" type="button"
					data-dismiss="modal" class="btn btn-default">取消</button>
			</div>
		</div>
		
		<div id="searchEmployee" class="modal fade" tabindex="-1"
			data-backdrop="static" data-keyboard="false"
			data-attention-animation="false">
			<div class="modal-body">
				<form id="search_form"
					class="form-horizontal form-bordered">
					<div class="form-body">
						<div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							<label class="control-label col-md-2">姓名:</label>
							<div class="col-md-4" style="border-left: 0; ">
								<input type="text" class="form-control"
									placeholder="按姓名查询" id="searchName"
									name="name">
							</div>
							<label class="control-label col-md-2">性别:</label>
							<div class="col-md-4" style="border-left: 0;">
								<select name="sex"  class="form-control select2" id="searchSex" style="z-index: 999">
									<option value="-1">请选择</option>
									<option value="0">男</option>
									<option value="1">女</option>
								</select>
							</div>
							<%-- <label class="control-label col-md-2">部门:</label>
							<div class="col-md-4" style="border-left: 0;">
								<select id="searchDepartmentId" name="department.id"  class="form-control select2" id="select_pro_sel" style="z-index: 999">
									<c:forEach var="dep" items="${depList}" >
										<option value="${dep.id}">${dep.departmentName}</option>
									</c:forEach>
								</select>
							</div> --%>
						</div>
						<div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							
							<label class="control-label col-md-2">手机:</label>
							<div class="col-md-4" style="border-left: 0;">
								<input type="text" class="form-control"
									placeholder="按手机号查询" id="searchMobile"
									name="mobile">
							</div>
							<label class="control-label col-md-2">状态:</label>
							<div class="col-md-4" style="border-left: 0;">
								<select name="status"  class="form-control select2" id="searchStatus" style="z-index: 999">
									<option value="-1">请选择</option>
									<option value="1" style="color: green;">在职</option>
									<option value="0" style="color: red;">离职</option>
								</select>
							</div>
						</div>
						
						<!-- <div class="form-group"
							style="border-bottom: 0;border-left: 0;">
							<label class="control-label col-md-2">QQ：</label>
							<div class="col-md-4" style="border-left: 0;">
								<input type="text" class="form-control"
									placeholder="按QQ查询" id="searchQq"
									name="qq">
							</div>
						</div> -->
					</div>
				</form>
			</div>
			<div class="modal-footer" style="margin-top: 0;">
				<button id="btn_search_commitBtn" type="button"
					data-dismiss="modal" class="btn blue">查询</button>
				<button id="btn_search_cancelBtn" type="button"
					data-dismiss="modal" class="btn btn-default">取消</button>
			</div>
		</div>
		<!--show modal end  -->
		
		
	</div>
	<!-- END CONTAINER -->
	<!-- BEGIN FOOTER -->
	<%@include file="footer.jsp"%>
	<!-- END FOOTER -->
	
	
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- BEGIN CORE PLUGINS -->
	<!--[if lt IE 9]>
	<script src="assets/plugins/respond.min.js"></script>
	<script src="assets/plugins/excanvas.min.js"></script> 
	<![endif]-->
	<script src="assets/plugins/jquery-1.10.2.min.js"
		type="text/javascript"></script>
	<script src="assets/plugins/jquery-migrate-1.2.1.min.js"
		type="text/javascript"></script>
	<script src="assets/plugins/bootstrap/js/bootstrap.min.js"
		type="text/javascript"></script>
	<script
		src="assets/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js"
		type="text/javascript"></script>
	<script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"
		type="text/javascript"></script>
	<script src="assets/plugins/jquery.blockui.min.js"
		type="text/javascript"></script>
	<script src="assets/plugins/jquery.cookie.min.js"
		type="text/javascript"></script>
	<script src="assets/plugins/uniform/jquery.uniform.min.js"
		type="text/javascript"></script>
	<!-- END CORE PLUGINS -->

	<!-- BEGIN PAGE LEVEL PLUGINS -->
	<script type="text/javascript" src="assets/plugins/select2/select2.js"></script>
	<script type="text/javascript"
		src="assets/plugins/data-tables/jquery.dataTables.min.js"></script>
	<script type="text/javascript"
		src="assets/plugins/data-tables/DT_bootstrap.js"></script>
	<script type="text/javascript"
		src="assets/plugins/bootstrap-modal/js/bootstrap-modalmanager.js"></script>
	<script type="text/javascript"
		src="assets/plugins/bootstrap-modal/js/bootstrap-modal.js"></script>
	<script type="text/javascript"
		src="assets/plugins/bootstrap-toastr/toastr.min.js"></script>
	<script type="text/javascript"
		src="assets/plugins/bootstrap-modal/js/bootstrap-modalmanager.js"></script>
	<script type="text/javascript"
		src="assets/plugins/bootstrap-modal/js/bootstrap-modal.js"></script>
	<!-- END PAGE LEVEL PLUGINS -->

	<!-- BEGIN PAGE LEVEL SCRIPTS -->
	<script src="assets/scripts/app.js" type="text/javascript"></script>
	<script src="js/page/addPlan.js" type="text/javascript"></script>
	<!-- END PAGE LEVEL SCRIPTS -->
	<script>
		jQuery(document).ready(function() {
			App.init(); // initlayout and core plugins
			//$("#searchEmployee").modal();
		});
	</script>
	<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>